import Icon from '@ui/RJMart/icons'

export default class CartCheckBox extends React.Component{
    render(){
        const {selected,onClick}=this.props
        return(
            <div
                onClick={onClick}
                className={selected ?'cart-content-box-gouxuan1':'cart-content-box-gouxuan'}>
                {
                    selected?
                        <Icon
                            type={'check'}
                            width={16}
                            height={16}
                            color={'#fff'}
                            style={{marginTop:-4.5,marginLeft:-1}}
                        />
                        :null
                }

            </div>
        )
    }
}